package com.yunji.web.cabinet;

import com.yunji.cabinet.business.UpgradeInfoBusiness;
import com.yunji.cabinet.params.UpgradeInfoParam;
import com.yunji.cabinet.vo.UpgradeInfoVO;
import com.yunji.common.base.response.Response;
import com.yunji.common.base.response.ResponseHelper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@Api(tags = "管理端-升级任务详情")
@RestController
@RequestMapping("/upgrade/info")
public class UpgradeInfoController {

    @Resource
    UpgradeInfoBusiness business;

    @ApiOperation("详情列表")
    @GetMapping(value = "list")
    public Response<List<UpgradeInfoVO>> list(UpgradeInfoParam param){
        return ResponseHelper.successWithPage(business.search(param));
    }


}
